package com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt071relatedpartiesperson.controller;

import com.jxdinfo.hussar.support.mp.base.controller.HussarBaseController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jxdinfo.hussar.support.audit.core.annotations.AuditLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventGrade;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventType;
import com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt071relatedpartiesperson.service.Lwt071RelatedPartiesPersonService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.PostMapping;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt071relatedpartiesperson.vo.Lwt071RelatedPartiesPersonPageVO;
import com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt071relatedpartiesperson.dto.Lwt071RelatedPartiesPersonLwt071relatedpartiespersondataset1;
import com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt071relatedpartiesperson.model.Lwt071RelatedPartiesPerson;
import org.springframework.beans.factory.annotation.Autowired;
import com.jxdinfo.hussar.platform.core.base.apiresult.ApiResponse;

/**
 * 相关方人员表控制器
 */
@RestController(value = "xgfgl.lwt071relatedpartiesperson.Lwt071RelatedPartiesPersonController")
@AuditLog(moduleName = "相关方人员表")
@RequestMapping(value = "/xgfgl/lwt071RelatedPartiesPerson")
public class Lwt071RelatedPartiesPersonController extends HussarBaseController<Lwt071RelatedPartiesPerson, Lwt071RelatedPartiesPersonService> {

    private static final Logger logger = LoggerFactory.getLogger(Lwt071RelatedPartiesPersonController.class);

    @Autowired
    private Lwt071RelatedPartiesPersonService lwt071RelatedPartiesPersonService;

    /**
     * 相关方人员表表格查询（带分页）
     *
     * @param page 分页对象
     * @return 查询结果
     */
    @AuditLog(moduleName = "相关方人员表", eventDesc = "表格查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("hussarQueryPage")
    public ApiResponse<Lwt071RelatedPartiesPersonPageVO> hussarQueryPage(@RequestBody Page<Lwt071RelatedPartiesPerson> page) {
        return lwt071RelatedPartiesPersonService.hussarQueryPage(page);
    }

    /**
     * 相关方人员表表格查询（带分页）
     *
     * @param page 分页对象
     * @return 查询结果
     */
    @AuditLog(moduleName = "相关方人员表", eventDesc = "表格查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("hussarQueryPage_order_custom")
    public ApiResponse<Lwt071RelatedPartiesPersonPageVO> hussarQueryPage_order_custom(@RequestBody Page<Lwt071RelatedPartiesPerson> page) {
        return lwt071RelatedPartiesPersonService.hussarQueryPage_order_custom(page);
    }

    /**
     * 相关方人员表表格查询（带分页）
     *
     * @param lwt071relatedpartiespersondataset1 查询对象
     * @return 查询结果
     */
    @AuditLog(moduleName = "相关方人员表", eventDesc = "表格查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("hussarQuerylwt071RelatedPartiesPersonCondition_1Page")
    public ApiResponse<Lwt071RelatedPartiesPersonPageVO> hussarQuerylwt071RelatedPartiesPersonCondition_1Page(@RequestBody Lwt071RelatedPartiesPersonLwt071relatedpartiespersondataset1 lwt071relatedpartiespersondataset1) {
        return lwt071RelatedPartiesPersonService.hussarQuerylwt071RelatedPartiesPersonCondition_1Page(lwt071relatedpartiespersondataset1);
    }

    /**
     * 相关方人员表表格查询（带分页）
     *
     * @param lwt071relatedpartiespersondataset1 查询对象
     * @return 查询结果
     */
    @AuditLog(moduleName = "相关方人员表", eventDesc = "表格查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("hussarQuerylwt071RelatedPartiesPersonCondition_1Page_order_custom")
    public ApiResponse<Lwt071RelatedPartiesPersonPageVO> hussarQuerylwt071RelatedPartiesPersonCondition_1Page_order_custom(@RequestBody Lwt071RelatedPartiesPersonLwt071relatedpartiespersondataset1 lwt071relatedpartiespersondataset1) {
        return lwt071RelatedPartiesPersonService.hussarQuerylwt071RelatedPartiesPersonCondition_1Page_order_custom(lwt071relatedpartiespersondataset1);
    }
}
